import { imageBase, videoBase, miniImageBase, miniImageInfo } from '../config/hostBase.js'
import commonMethods from './commonMethods.js'

module.exports = options => {
  let data = options.data
  delete options.data
  return {
    data: {
      ...data,
      imageBase,
      videoBase,
      miniImageBase,
      miniImageInfo
    },
    ...commonMethods,
    ...options
  }
}